/**
 * Created by zf900 on 2017/4/17.
 */
var greeting = 'Howdy ';
var name = 'Molly';
var message = ', please check your order:';
var welcome = greeting + name + message;

var sign = 'Montague House';	//名牌内容
var tiles = sign.length;		//名牌长度，字符数量
var subtotal = tiles * 5;		//每个字母$5,小计金额
var shipping = 7;		//运费
var grandTotal = subtotal + shipping;

var el = document.getElementById('greeting');
el.textContent = welcome;

var elSign = document.getElementById('user_sign');
elSign.textContent = sign;

var elTiles = document.getElementById('tiles');
elTiles.textContent = tiles;

var elSubtotal = document.getElementById('subtotal');
elSubtotal.textContent = '$' + subtotal;

var elShipping = document.getElementById('shipping');
elShipping.textContent = '$' + shipping;

var elGrandTotal = document.getElementById('grand_total');
elGrandTotal.textContent = grandTotal;
